import request from "@/utils/request";

/**
 * @description 获取租赁合同列表
 * @param params
 * @returns {*}
 */
export function list(params){
    return request({
        url:'/fwRenewalRecord/admin/getFwRenewalRecordList',
        method:'GET',
        params
    })
}
/**
 * @description -获取续租记录详情
 * @param params
 * @returns {*}
 */
export function detail(params){
    return request({
        url:'/fwRenewalRecord/admin/getFwRenewalRecordById',
        method:'GET',
        params
    })
}
/**
 * @description -删除续租记录
 * @param params
 * @returns {*}
 */
export function deleteRow(params){
    return request({
        url:'/fwRenewalRecord/admin/deleteFwRenewalRecord',
        method:'GET',
        params
    })
}


/**
 * 审核续租记录
 * @param data
 * @returns {*}
 */
export function examineFwRenewalRecord(data){
    return request({
        url:'/fwRenewalRecord/admin/examineFwRenewalRecord',
        method:'POST',
        data
    })
}

/**
 * 发起续租
 * @param data
 * @returns {*}
 */
export function forFwRenewalRecord(data){
    return request({
        url:'/fwRenewalRecord/admin/forFwRenewalRecord',
        method:'POST',
        data
    })
}
